import request from '../request.js'

// 订单列表
function getOrderList(data) {
	return request({
		url: '/merchant/order/getOrderList',
		method: 'post',
		data
	})
}
// 取消外卖单
function cancelOrder(data) {
	return request({
		url: '/merchant/order/cancelOrder',
		method: 'post',
		data
	})
}
// 取消配送
function cancelDelivery(data) {
	return request({
		url: '/merchant/order/cancelDelivery',
		method: 'post',
		data
	})
}
// 发起配送
function deliveryOrder(data) {
	return request({
		url: '/merchant/order/deliveryOrder',
		method: 'post',
		data
	})
}
// 订单详情
function getOrderDetail(data) {
	return request({
		url: '/merchant/order/getOrderDetail',
		method: 'post',
		data
	})
}
// 退款
function refundOrder(data) {
	return request({
		url: '/merchant/order/refundOrder',
		method: 'post',
		data
	})
}
// 打印小票
function orderPrinter(data) {
	return request({
		url: '/merchant/order/orderPrinter',
		method: 'post',
		data
	})
}
// 价钱
function getOrderBill (data){
	return request({
		url:'/merchant/order/getOrderBill',
		method:'POST',
		data
	})
}
export {
	getOrderList,
	cancelOrder,
	cancelDelivery,
	deliveryOrder,
	getOrderDetail,
	refundOrder,
	orderPrinter,
	getOrderBill
}